<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Base extends Controller_Template {

	public $template = "default.tpl";
    public $colibri;

	public function before()
	{
        Kohana::prepend_path('');
		$this->colibri = new Model_Colibri();
		Kohana::$config->load('smarty')->smarty_config['template'] = $this->colibri->setting->get('site_template');
        parent::before();
		$this->template->title = $this->colibri->setting->get('site_title');
	}


}
